let myPlugins = {}

myPlugins.install = function (Vue, options) {
  // console.log(Vue, options)
  // Vue.prototype.$bus: 任何时候组件都可以使用 Vue.directive   Vue.filter......
  Vue.directive(options.name, (element, params) => {
    element.innerHTML = params.value.toUpperCase()
    console.log(params)
  })

}


export default myPlugins